package com.shelpe.services.sinbad.entity.jpa;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import lombok.Data;

@Entity(name = "products")
@Data
public class Product {
	@Id
	@Column(name = "num_iid")
	private long productID;
	@Column(name = "title")
	private String productName;
	@Column(name = "user_id")
	private long userID;
	@Column(name = "pic_url")
	private String pictureUrl;
	@Column(name = "cid")
	private long categoryID;
	@Column(name = "sales_count")
	private int sales;

	private int price;

	private int quantity; // 库存
	@Column(name = "publish_time")
	private Date publishTime; // 上架时间
}
